
#ifndef EAGL_VIEW_CONTROLLER_H
#define EAGL_VIEW_CONTROLLER_H

// INCLUDES ********************************************************************

#include "EAGLView.h"

#import <UIKit/UIKit.h>

#include <set>

#include <vector>

// FORWARD DECLARATIONS ********************************************************

// *****************************************************************************

//! EAGLViewController
//! 
//! ViewController managing interface rotation

// *****************************************************************************

@interface EAGLViewController : UIViewController
{
    std::set<UIInterfaceOrientation> mSupportedOrientations;
    
    EAGLView* mView;
    
    BOOL mShouldAutorotate;
}

- ( EAGLView*)defaultViewForOrientations:( std::vector<UIInterfaceOrientation>) orientations;

- ( void)setShouldAutorotate:( BOOL) shouldAutorotate;

@end

#endif
